package st.business.tepth.business.driverinfo;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.DriverWorkRecordBean;
import st.business.tepth.business.bean.PagingBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-03-01 11:55
 */

public interface DriverInfoContract {
    interface View extends BaseView {
        void showData(PagingBean<DriverWorkRecordBean> pagingBean,
                boolean isRefresh);
    }

    interface Model extends BaseModel {
        Disposable getWorkRecord(String token, String jobNo,
                                 String startDate,
                                 String endDate,
                                 int pageNumber,
                                 int pageSize, OnDataConvertListener<PagingBean<DriverWorkRecordBean>>
                                         listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getWorkRecord(String token, String jobNo,
                                    String startDate,
                                    String endDate,
                                    int pageNumber,
                                    int pageSize,
                boolean isRefresh);
    }
}
